<%@page language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
	<title>登陆</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
	<div class="login_head">
		<div class="container">
			<img src="images/logo.png">
		</div>
	</div>

	<form action="login" method="post"  onsubmit="return checkForm()">
	<div class="login_banner">
		<div class="container">
			<div class="login">
                <div class="login_in">
                    <div class="login_h">后台登陆</div>
                    <div class="user_login">
                        <input type="text" placeholder="账号" name="userAcct">
                        <input type="text" placeholder="密码" name="userPwd">
                    </div>
                    <div class="img_code">
                        <input type="text" placeholder="验证码" name="code" id="code">
                        <img id="codeImg" src="${pageContext.request.contextPath}/code.jpg" alt="" onclick="changeImg()">
                    </div>
                    <button type="submit" class="login_btn">登陆</button>
                </div>
                
            </div>
		</div>
	</div>
	</form>
	<div class="login_end text_center">版权所有&copy;：新开普电子股份有限公司  豫ICP备08102576号  未经授权本站内容禁止私自转载使用！</div>


	<h1 style='color:red'>${msg}</h1>

<script language="JavaScript">

	function checkForm(){

      var code=document.getElementById("code").value;

      if(code=="" || code == null){
      	alert("请输入验证码");
      	return false;
	  }



	}

	function changeImg(){
		//
    document.getElementById("codeImg").src="${pageContext.request.contextPath}/code.jpg?a="+new Date().getTime();
	}

</script>
</body>
</html>